
cc.Class({
    extends: cc.Component,

    properties: {
        flag: cc.Label
    },


    onLoad () {
        this.speed = 100
    },


    update (dt) {
        if(game.gameStatus == 1) this.node.y = this.node.y - this.speed * dt
        
        if(this.node.y <= -630){
            game.delPrefab(this.node, 1001)
        }

    },

});
